package com.ls.blog.utils;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @program: myblog
 * @author: lishun
 * @create: 2021-07-11 17:52
 **/
@Component
public class PictureUtile {
    @Resource
    private QieNiuProperties qieNiuProperties;
    public static String accessKey;
    public static String secretKey;
    public static String bucketname;
    public static String url;
    @PostConstruct
    public void init() {
        accessKey = this.qieNiuProperties.getAccessKey();
        secretKey = this.qieNiuProperties.getSecretKey();
        bucketname = this.qieNiuProperties.getBucketname();
        url = this.qieNiuProperties.getUrl();
    }
}
